export function toUnderLineStyle(word: string): string {
    return toLineStyle(word, "_");
}

export function toLineStyle(word: string, joinMark: string = "-"): string {
    let firstLetter = word[0].toLowerCase();
    const newWord = firstLetter + word.slice(1);
    return newWord.replace(/[A-Z]/g, ($0) => {
        return joinMark + $0.toLowerCase();
    });

}

export function toCamelStyle(word: string): string {
    return word.replace(/_([a-z])/g, ($0, $1) => {
        return $1.toUpperCase();
    });
}
